//创建一个路由器并暴露出去
//1.引入createRouter、组件
import {createRouter,createWebHistory} from "vue-router";
//引入组件
import Props from '@/views/01_props/Father.vue'
import Event from '@/views/02_custom-event/Father.vue'
import Bus from '@/views/03_mitt/Father.vue'

//暴露出去router
export default createRouter({
    history: createWebHistory(),
    routes: [
        {
            path: '/props',
            component: Props
        },
        {
            path: '/event',
            component: Event
        },
        {
            path: '/mitt',
            component: Bus
        }
    ]
})

